package com.linktrip.devicemanager.entity;

import java.util.Date;

public class DeviceInfo extends BaseEntity {

	/**
	 * @date 2017/02/15
	 * @author CaineZhu
	 */
	private static final long serialVersionUID = 6859658077581817117L;

	private int id; // ID 主键
	private String device_no; // 设备编号
	private String device_name; // 设备名称
	private String phone_number; // SIM卡对应的电话号码
	private String sim_no; // SIM卡编号
	private String device_desc; // 设备描述
	private int status; // 设备状态 0=未知,1=LOCK,2=UNLOCK
	private int falut; // 1=有故障,0=无故障
	private int charge; // 充电状态 1=充电中,0未充电
	private int vbattery;// 电池电压
	private double latitude; // 纬度
	private double longitude;// 经度
	private long refresh; // 刷新时间
	private int battery_status; // 电池电量
	private int temperature; // 温度
	private int vbus; // 电压
	private int locationFlag;// 1代表GPS 2代表LBS 0代表未定位
	private int upgradeFlag;// 1代表GPS 2代表LBS 0代表未定位
	private int sys_version; // 固件版本
	private int hdware_version;// 硬件版本
	private int na1;// 1:gps 2:lbs
	private int na2;// csq信号
	private String remark;// 1代表正在升级 0代表不处于升级状态

	public DeviceInfo() {
	}

	public DeviceInfo(String device_no, String phone_number, String sim_no, String device_desc) {
		super();
		this.device_no = device_no;
		this.phone_number = phone_number;
		this.sim_no = sim_no;
		this.device_desc = device_desc;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDevice_no() {
		return device_no;
	}

	public void setDevice_no(String device_no) {
		this.device_no = device_no;
	}

	public String getDevice_name() {
		return device_name;
	}

	public void setDevice_name(String device_name) {
		this.device_name = device_name;
	}

	public String getPhone_number() {
		return phone_number;
	}

	public void setPhone_number(String phone_number) {
		this.phone_number = phone_number;
	}

	public String getSim_no() {
		return sim_no;
	}

	public void setSim_no(String sim_no) {
		this.sim_no = sim_no;
	}

	public String getDevice_desc() {
		return device_desc;
	}

	public void setDevice_desc(String device_desc) {
		this.device_desc = device_desc;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getFalut() {
		return falut;
	}

	public void setFalut(int falut) {
		this.falut = falut;
	}

	public int getCharge() {
		return charge;
	}

	public void setCharge(int charge) {
		this.charge = charge;
	}

	public int getVbattery() {
		return vbattery;
	}

	public void setVbattery(int vbattery) {
		this.vbattery = vbattery;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public long getRefresh() {
		return refresh;
	}

	public void setRefresh(long refresh) {
		this.refresh = refresh;
	}

	public int getBattery_status() {
		return battery_status;
	}

	public void setBattery_status(int battery_status) {
		this.battery_status = battery_status;
	}

	public int getTemperature() {
		return temperature;
	}

	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}

	public int getVbus() {
		return vbus;
	}

	public void setVbus(int vbus) {
		this.vbus = vbus;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public int getLocationFlag() {
		return locationFlag;
	}

	public void setLocationFlag(int locationFlag) {
		this.locationFlag = locationFlag;
	}

	public int getUpgradeFlag() {
		return upgradeFlag;
	}

	public void setUpgradeFlag(int upgradeFlag) {
		this.upgradeFlag = upgradeFlag;
	}

	public int getSys_version() {
		return sys_version;
	}

	public void setSys_version(int sys_version) {
		this.sys_version = sys_version;
	}

	public int getHdware_version() {
		return hdware_version;
	}

	public void setHdware_version(int hdware_version) {
		this.hdware_version = hdware_version;
	}
	
	public int getNa1() {
		return na1;
	}

	public void setNa1(int na1) {
		this.na1 = na1;
	}

	public int getNa2() {
		return na2;
	}

	public void setNa2(int na2) {
		this.na2 = na2;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "DeviceInfo [id=" + id + ", device_no=" + device_no + ", device_name=" + device_name + ", phone_number="
				+ phone_number + ", sim_no=" + sim_no + ", device_desc=" + device_desc + ", status=" + status
				+ ", falut=" + falut + ", charge=" + charge + ", vbattery=" + vbattery + ", latitude=" + latitude
				+ ", longitude=" + longitude + ", refresh=" + refresh + ", battery_status=" + battery_status
				+ ", temperature=" + temperature + ", vbus=" + vbus + ", locationFlag=" + locationFlag
				+ ", upgradeFlag=" + upgradeFlag + ", sys_version=" + sys_version + ", hdware_version=" + hdware_version
				+ ", na1=" + na1 + ", na2=" + na2 + ", remark=" + remark + "]";
	}
}
